<html>
<head><title>Panic Menu</title>
<link rel="stylesheet" type="text/css" href="../css/Default.css" />
<Script language="javascript" src="../data/password.js"></script>
<Script language="javascript" src="../exec/login.js"></script>
<noscript>
location.href="../noscript.html";
</noscript>
<SCRIPT LANGUAGE="JavaScript">
	window.onload = redir(0);
//name of cookie: 'eomdmf'
</SCRIPT>
<!-- Add their ip and date to file -->
<?php
$cookie = $_COOKIE['eomdmf'];
include '../exec/GetRoot.php';

if($cookie == $root_user.":".$root_pass)//Checks if the user is the root user
{
	$fh = fopen("ENGAGE.js", "w");//We wanted to name it something epic. (:
	if($fh==false){
		die("unable to create file");
	}
	fwrite($fh,"var Panic_Mode=false;"); //If the user clicks panic off, Panic_Mode=false gets written to ENGAGE.js
	fclose($fh);
}
	
echo "<script language='javascript'>location.href='../PanicMenu.html';</script>"; //Redirects automatically to the panic menu 

?>
</HEAD>
<body >
<fieldset style="border-color:bfae20">
	<br>

	<font size="3.5" face="Arial">
	<b>
	Panic Off
	</b>
	</font>
<center>
<table border="0">
<tr>
<td>
<center>
	<FORM METHOD="LINK" ACTION="../index.html">
	<INPUT TYPE="submit" VALUE="Home Page">
	</FORM>

	<FORM METHOD="LINK" ACTION="../LoggedIn.php">
	<INPUT TYPE="submit" VALUE="Main Menu">
	</FORM>
	
	<FORM METHOD="LINK" ACTION="../PanicMenu.html">
	<INPUT TYPE="submit" VALUE="Panic Menu">
	</FORM>
</center>	
</td>
</tr>
</table>
</center>
</fieldset>

<center>
<img src= "../media/Gold_Lion.jpg"/>
</center>
</body>
</html>
